package com.tuxianchao.springbootmybatismapper;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 启用日志注解，等同于xml配置方式的 <tx:annotation-driven />
 * 开启mybbatis的mapper扫描
 */
@SpringBootApplication
@EnableTransactionManagement
@MapperScan(
        basePackages = "com.tuxianchao.springbootmybatismapper.mapper")
public class SpringBootMybatisMapperApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringBootMybatisMapperApplication.class, args);
    }
}
